package com.sunxu.exercise3;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;

/**
 * ${DESCRIPTION}
 *
 * @author Sun
 * @create 2017-08-01-15:52
 */
public class TestableWebClient extends WebClient {
    private HttpURLConnection connection;

    public void setHttpURLConnection(HttpURLConnection connection) {
        this.connection = connection;
    }

    public HttpURLConnection createHttpURLConnection(URL url) throws IOException {
        return this.connection;
    }
}
